<%@ page language="java" contentType= "text/html" pageEncoding="UTF-8"%>
<%@include file="/include/common/formuihead1.jsp"%>
<%
	page1.getPageTitle().setEnab(false);
%>
<%@include file="/include/common/formuihead2.jsp"%>
<%
	page1.getPageTitle().setTitle("簽核頁面right");
%>
<jm:form>
<jm:layout postion="north">
	<jm:pageTitle />
</jm:layout>

<jm:layout postion="center">
	<jm:error></jm:error>  
	<jm:table id="grid1" dataSet="<%=ret.getSerchResult()%>">
		<jm:thead>
			<tr class="">
				<td width="100px">單據類型</td>
				<td width="100px">單據號</td>
				<td width="100px">當前步驟</td>
				<td width="100px">送簽人</td>
				<td width="*">送簽時間</td>
			</tr>
		</jm:thead>
		<jm:tbody>
			<jm:tr>
				<jm:td cid="wfname"></jm:td>
				<jm:td cid="wfbillno">
					<a href="#" onclick="opencheckpage('<%=ret.grsv("checkpage")%>','<%=ret.grsv("wfopstepid")%>')"><%=ret.grsv("wfbillno")%></a>
				</jm:td>
				<jm:td cid="wfstepname"></jm:td>
				<jm:td cid="sendchname"></jm:td>
				<jm:td cid="sendday"><%=utils.formatDateTimes((Date)ret.grov("sendday"), "yyyy/MM/dd hh:mm")%></jm:td>
			</jm:tr>
		</jm:tbody>
	</jm:table>
</jm:layout>
</jm:form>
<jm:script><script type="text/javascript" charset="UTF-8">
	var targetWin = null ;
	if(targetWin == null){
		targetWin = parent.$('#frame1')[0].contentWindow;
	}
	
	//以下定义 action function ,on+action 命名function
	function opencheckpage(url,wfopstepid){
		if(url.indexOf('?') < 0)
			url += '?';
		url += '&wfopstepid='+wfopstepid;
		var ret = $P.showmodaldialog1('../../'+url, {},'', 0, 0);
		try{
			if(ret['wfsucc'] != null && ret['wfsucc']==true){
				self.location.href=self.location.href;
				targetWin.location.href=targetWin.location.href;
			}
		}catch(e){
		}
	}
</script></jm:script>
<%@include file="/include/common/formuiend.jsp"%>
